qemu: Fix vnc port offset in xenstore
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 6 Jun 2007 19:25:58 +0000 (20:25 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 6 Jun 2007 19:25:58 +0000 (20:25 +0100)
The new version of qemu uses 5900 instead of 0 as the port.
There is no need to offset it by 5900 when writing out the
console/vnc-port entry.

Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
tools/ioemu/xenstore.c

index c3ee11b19c4b45b61d605a5b477976d7af9d45f9..ddadcb6a0fba32a5a75237c894c8247120f05cbd 100644 (file)
@@ -367,7 +367,7 @@ void xenstore_write_vncport(int display)
     if (pasprintf(&buf, "%s/console/vnc-port", path) == -1)
         goto out;
 
-    if (pasprintf(&portstr, "%d", 5900 + display) == -1)
+    if (pasprintf(&portstr, "%d", display) == -1)
         goto out;
 
     if (xs_write(xsh, XBT_NULL, buf, portstr, strlen(portstr)) == 0)